package org.example.web.cilents;


import org.example.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

//配置一个feign客户端，指定服务名称
@FeignClient(name = "hello")
public interface HelloClient {

    //http://服务实例id:port/hello
    @GetMapping("/hello")
    ResponseResult getHello();
}
